using System;
using System.Collections.Generic;
using System.Text;

namespace Dare.Utilities.Net.Ftp
{
    public class FtpUtil
    {
        public static Uri GetFtpUri(string hostName)
        {
            return new UriBuilder(Uri.UriSchemeFtp, hostName).Uri;
        }

        public static Uri GetFtpUri(string hostName, string rootPath)
        {
            return new UriBuilder(Uri.UriSchemeFtp, hostName, 21, rootPath).Uri;
        }

        public static Uri GetFtpUri(string hostName, int portNumber, string rootPath)
        {
            return new UriBuilder(Uri.UriSchemeFtp, hostName, portNumber, rootPath).Uri;
        }
    }
}
